@BMakeBoxIntoColumns @P@ICopyright Gold Disk Inc., January, 1992
This Genie will create several columns in a box. You will be prompted to enter the number of columns required and the gutter. You may also separate the columns by vertical dividers and put a border around each column.
*/
arg box, cols, gutter, vert, borders, link
borders = upper(borders)
vert = upper(vert)
link = upper(link)
address command
call SafeEndEdit.rexx()
call ppm_AutoUpdate(0)
units = ppm_GetUnits()
if units = 3 then
call ppm_SetUnits(1)
signal on halt
signal on break_c
signal on break_e
signal on break_d
rval = 1
if box = '' then
do
cr = '0a'x
box = ppm_ClickOnBox("Select box in which to create columns..")
if box = 0 then exit_msg()
form = "Number of Columns"cr"Gutter"cr"Column dividers Y/N"cr"Box Borders Y/N"cr"Link columns Y/N"
form = upper(ppm_GetForm("Enter options", 8, form))
if form = '' then exit_msg()
parse var form cols '0a'x gutter '0a'x vert '0a'x borders '0a'x link
rval = 0
end
if ~(datatype(cols,n) & datatype(gutter, n)) | verify(vert||borders||link, "YESNOyesno")~= 0 then
exit_msg("Invalid Input")
if units = 3 then gutter = ppm_ConvertUnits(3,1, gutter)
if ppm_GetBoxAngle(box) ~= 0 then exit_msg("Genie does not work on rotated boxes")